use MapLoaderTestHelper;
use EntityBagTestHelper;

($w, $h) = (4, 5);
$loader = MapLoader->new({WIDTH=>$w, HEIGHT=>$h});

print "\n";
testClass($loader, "MapLoader");

print "\n";
testParamsAreValid($loader);

$map = $loader->load();

print "\n";
testClass($map, "Map");
testDimensions($map, $w, $h);

$loader = MapLoader->new({WIDTH=>0});
testParamsAreInvalid($loader);


printMap($map);
